url="https://bing.ioliu.cn"
if [ $# -gt 0 ];then
	url="https://bing.ioliu.cn/ranking"
fi
page=$(($RANDOM % 2 + 1))
url="${url}?p=$page"
echo "URL:$url"
notify-send XWallpaper 壁纸正切着呢，别着急等会...（╯－＿－）╯╧╧
arr=(`curl -s $url | grep -o '<img[^>]*>' | awk '{print substr($5,6,length($5)-7)}'`)
uri=${arr[$(($RANDOM % 10))]}
gsettings set org.gnome.desktop.background picture-uri $uri
notify-send XWallpaper 呼～可算切完了'*.。(๑･∀･๑)*.。'
